package org.fmblzf.com.android_net;

import android.app.Activity;
import android.os.Bundle;

import org.fmblzf.library.inter.AsmHandleListener;
import org.fmblzf.library.version.VersionUpdate;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        //检查版本信息
        String version_path = "http://10.0.0.82:8080/version/version.xml";
        VersionUpdate.getInstance(this).initAppVersion(version_path, new AsmHandleListener() {
            @Override
            public Object start(int action, Object... objs) {
                return null;
            }

            @Override
            public Object process(int action, Object... objs) {
                return null;
            }

            @Override
            public Object sucess(int action, Object... objs) {
                return null;
            }

            @Override
            public Object fail(int action, Object... objs) {
                return null;
            }
        });
    }

}
